﻿@if (Request.IsAuthenticated)
{
    <text>Welcome @Html.ActionLink(this.Session["username"].ToString(), "UserView", "Home", new { id = this.User.Identity.Name }, null)
    <p class="ZeroPad">
        <a href="@Url.Action("LogOff", "Account")" class="ui-icon ui-icon-power"
            style="float: right"></a>
        @if (ScrumPilot.Helpers.SPHelpers.IsAdmin(this.User.Identity.Name))
        {
            <a href='@Url.Action("Params", "Config")'  class="ui-icon ui-icon-gear" style="float: right"></a>
        }
        <a href='@Url.Action("About", "Home")' class="ui-icon ui-icon-info" style="float: right"></a>
    </p></text>
}
else
{
    @:[ @Html.ActionLink("Log On", "LogOn", "Account", null, new { @id = "logonButton" })]
}
